﻿package com.javaPattern.Observer;

public class Clients {

	public static void main(String[] args) {
		Subject child = new Children();
		Observer father = new Father();
		Observer mother = new Mother();

		child.attach(father);
		child.attach(mother);

		child.setState("fight");
		child.notifyObs();
		child.setState("scholarship");
		child.notifyObs();
	}
}
